<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title><s:property value="title"/> | 舰娘百科</title>
    <s:include value="head.jsp" />
</head>
<body>
    <div class="body-container">
        <s:include value="header.jsp" />
        <div class="wikiWrite-container notshow" role="navigation">
        <div class="wikiEdit-abstract">
            <p>标题:</p>
            <input type="text" id="wikiEdit-title" value="<s:property value="title" />" style="width:100%">
        </div>
        <div class="wikiEdit-frame">
            <ul class="nav nav-tabs">
                <li role="presentation" class="active" data-toggle="tabs" id="wikiEdit"><a href="javascript:;" id="btn-wikiEdit">维基文本</a></li>
                <li role="presentation" data-toggle="tabs" id="wikiPreview"><a href="javascript:;" id="btn-wikiPreview">预览</a></li>
                <li role="presentation" ><a href="javascript:;" id="wikiImage">插入图片</a></li>
            </ul>
            <div class="wikiEdit-content">
                <div class="wikiEdit-textarea">
                    <textarea id="wikiEdit-textarea" cols="80" rows="25"><s:property value="content"/></textarea>
                </div>
                <div class="wikiPreview notshow">
                    <div class="Preview-content" id="Preview-content">

                    </div>
                </div>
                <label for="wikiWrite-reason">编辑原因：</label>
                <input type="text" id="wikiWrite-reason" placeholder="请输入编辑原因"  style="width:100%">
                <div class="btn btn-group">
                    <button class="btn btn-primary" style="margin-right: 20px" id="wikiWrite-save">保存本页</button>
                    <button class="btn btn-danger" id="wikiWrite-cancel">取消</button>
                </div>
            </div>
            <div class="wikiEdit-help">
                <p>基本排版语法:</p>
                <p>各级标题:&lt;h1>到&lt;h6>的标题可以通过下面的语法来设置：</p>
                <p>=h1=</p>
                <p>==h2==</p>
                <p>粗体，斜体和粗斜体：</p>
                <p>''我是斜体''</p>
                <p> '''我是粗体'''</p>
                <p>{_下划线字体_}</p>
                <p>{+大字体+}</p>
                <p>{-小字体-}</p>
                <p>表格</p>
                <p>||:Title1||:Title2||:Title3||</p>
                <p>||AAA||BBB||CCC||</p>
                <p>||DDD||EEE||FFF||</p>
                <p>转义:{='''这些代码不会转义。'''=}</p>
                <p>链接:</p>
                <p>普通外部超链接:[[http://www.baidu.com]]</p>
                <p>Wiki内部链接:[[Index]]</p>
                <p>限定大小的图片:[[http://blog.zyzsdy.com/wordpress/wp-content/themes/feelyblog/img/avatar.jpg x300]]</p>
                <p>对齐浮动样式:%color=red float=right size=20px%</p>
            </div>
        </div>
        </div>
        <s:if test="redirect!=null&&!redirect.equals(\"\")">
        <div class="alert alert-warning">
            从 <s:property value="redirect"/> 页面重定向而来。
        </div>
        </s:if>
        <div class="wikiShow-container">
            <div class="wiki-title">
                <h1 id="wiki-title"><s:property value="title"/></h1>
                <a href="javascript:;" id="wiki-write">编辑</a>
                <a href="/history/wiki/<s:property value="wikiid"/>" id="wiki-history">历史记录</a>
            </div>
            <div class="clear"></div>
            <div id="wiki-content">

            </div>
        </div>

        <s:include value="modal_mask.jsp" />
        <s:include value="footer.jsp" />
    </div>
    <input type="hidden" id="wikiPage-id" value="<s:property value="wikiid" /> "/>

<script src="/Public/js/jquery.min.js"></script>
<script src="/Public/js/bootstrap.min.js"></script>
<script src="/Public/js/jquery.feelywikicode.min.js"></script>
<script src="/Public/js/main.js"></script>
<script src="/Public/js/wiki.js"></script>
<script src="/Public/js/wikiDetails.js"></script>
</body>
</html>
